package com.demo.base.webView.weixin;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author 曳戈泰尔
 * @version 1.0
 * @description 微信小程序配置信息
 * @date 2023/3/14 2:40 PM
 */
@Configuration
@Data
public class WeJsConfig {

    @Value("${auth.weixin.app-id}")
    private String appId;

    @Value("${auth.weixin.secret}")
    private String secret;

    private String tokenUrl = "https://api.weixin.qq.com/cgi-bin/token";

    private String suffix = "&grant_type=client_credential";

    private String appidPrefix = "?appid=";

    private String secretPrefix = "&secret=";
}
